package com.example.testone.dialogs

import android.app.Dialog
import android.content.Context
import android.view.View
import com.example.testone.utils.SizeUtils

class CustomPerDialog(context: Context, _width:Float, _height:Float, layout: View):Dialog(context) {

    init {
        setContentView(layout)

        val window = getWindow()
        window?.attributes?.apply {
            width = (SizeUtils.widthPixels(context)*_width).toInt()
            height  = (SizeUtils.heightPixels(context)*_height).toInt()
        }
        window?.setBackgroundDrawable(null)

//        window?.attributes = params
    }

}